package com.lsq.test;

import com.lsq.mybatis.MapperProxyFactory;
import com.lsq.spring.LsqApplicationContext;

import java.util.List;

/**
 * @author lsq
 * @description spring测试
 * @date 2023/9/5
 */
public class Main {
    //public static void main(String[] args) {
    //    LsqApplicationContext lsqApplicationContext = new LsqApplicationContext(Appconfig.class);
    //
    //    UserService userService = (UserService) lsqApplicationContext.getBean("userService");
    //
    //    userService.test();
    //
    //    //System.out.println(userService);
    //}

    /**
     * @description: mybatis测试
     * @param args
     * @return void
     * @author: lsq
     * @date: 2023/9/11 16:53
     */
    public static void main(String[] args) {
        UserMapper userMapper = MapperProxyFactory.getMapper(UserMapper.class);
        List<User> user = userMapper.getUser("123");

    }
}
